<?php

header("content-type: application/json; charset-utf-8");

$id = isset($_POST["id"])  ? (int)$_POST["id"]: 0;

if($id < 3){
    echo json_encode([
        "code" => 100,
        "msg"=> "测试错误删除：id小于3不能删除",
    ]);
}else{
    echo json_encode([
        "code" => 0,
        "msg"=> "删除成功",
    ]);
}
